﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MX
{
    class Shopnpc : Npc

    {
        private string shopinfo;
        public Shopnpc(string name, Npctype type, string shopinfo) : base(name, type)
        {
            this.shopinfo = shopinfo;
        }

        public override void Speak()
        {
            Console.WriteLine("请问要买什么东西");
            Console.WriteLine("{0}{1}", this.Name, this.shopinfo);
        }
    }
}
